package com.scheduled.demo.config;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @description:
 * @author: chenjianshuo
 * @create: 2019-08-26 14:25
 **/

public class BaseApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        ApplicationContextHolder.context = applicationContext;
    }

}
